const toolTree = {
	treeToList(tree = []) {
		let list = [];
		tree.forEach(item => {
			list = [...list, ...toolTree.treeToList(item.children)];
		})
		return [...list, ...tree];
	}
}

export default toolTree;